'''
Created on Feb 27, 2011

@author: josh
'''

from google.appengine.ext import db

class Vendors(db.Model):
    seq = db.IntegerProperty()
    name = db.StringProperty()
    descr = db.StringProperty()
    created = db.DateTimeProperty(auto_now_add = True)
    status = db.IntegerProperty()
    
class Products(db.Model):
    vendor = db.IntegerProperty()
    name = db.StringProperty()
    descr = db.StringProperty()
    price = db.IntegerProperty()
    quantity = db.IntegerProperty()
    created = db.DateTimeProperty(auto_now_add = True)
    seq = db.IntegerProperty()
    status = db.IntegerProperty()
    
class Videos(db.Model):
    vendor = db.StringProperty()
    name = db.StringProperty()
    descr = db.StringProperty()
    video_id = db.StringProperty()
    url = db.URLProperty()
    created = db.DateTimeProperty(auto_now_add = True)
    seq = db.IntegerProperty()
    status = db.IntegerProperty()
    
    